<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class Stack</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
						<script src="../../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../../media/images/plus.png";
				imgMinus.src = "../../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Stack</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-vars">Vars</a>
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Stack实现类</p>
	<ul class="tags">
				<li><span class="field">author:</span> liu21st &lt;<a href="mailto:liu21st@gmail.com">liu21st@gmail.com</a>&gt;</li>
				<li><span class="field">version:</span> $Id$</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_ORG---Util---Stack.class.php.html">/ORG/Util/Stack.class.php</a> (line <span class="field">26</span>)
		</p>
		
				
		<pre><a href="../../Think/Core/Base.html">Base</a>
   |
   --<a href="../../Think/Util/ArrayList.html">ArrayList</a>
      |
      --Stack</pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-vars">Vars</a>
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																														
				<div class="method-definition">
											<span class="method-result">Stack</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">array</span>&nbsp;<span class="var-name">$values</span> = <span class="var-default">array()</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#peek" title="details" class="method-name">peek</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#pop" title="details" class="method-name">pop</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">mixed</span>
										<a href="#push" title="details" class="method-name">push</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>)
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
							<h4>Inherited Variables</h4>
				<A NAME='inherited_vars'><!-- --></A>
									<p>Inherited from <span class="classname"><a href="../../Think/Util/ArrayList.html">ArrayList</a></span></p>
					<blockquote>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Util/ArrayList.html#var$_elements">ArrayList::$_elements</a></span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-vars">Vars</a>
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">38</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">架构函数</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Stack</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">array</span>&nbsp;<span class="var-name">$values</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$values</span><span class="var-description">: 初始化数组元素</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../Think/Util/ArrayList.html#method__construct">ArrayList::__construct()</a></dt>
						<dd>架构函数</dd>
					</dl>
			
	</div>
<a name="methodpeek" id="peek"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">peek</span> (line <span class="line-number">53</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">将堆栈的内部指针指向第一个单元</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			peek
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodpop" id="pop"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">pop</span> (line <span class="line-number">67</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">最后一个元素出栈</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			pop
		</span>
				()
			</div>
	
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../Think/Util/ArrayList.html#methodpop">ArrayList::pop()</a></dt>
					</dl>
			
	</div>
<a name="methodpush" id="push"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">push</span> (line <span class="line-number">86</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">元素进栈</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			push
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$value</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$value</span>			</li>
				</ul>
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../../Think/Util/ArrayList.html">ArrayList</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#method__construct">ArrayList::__construct()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodadd">ArrayList::add()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodaddAll">ArrayList::addAll()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodasort">ArrayList::asort()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodclear">ArrayList::clear()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodcontains">ArrayList::contains()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodget">ArrayList::get()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodgetIterator">ArrayList::getIterator()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodindexOf">ArrayList::indexOf()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodisEmpty">ArrayList::isEmpty()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodksort">ArrayList::ksort()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodlastIndexOf">ArrayList::lastIndexOf()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodnatsort">ArrayList::natsort()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodpop">ArrayList::pop()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodrange">ArrayList::range()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodremove">ArrayList::remove()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodremoveRange">ArrayList::removeRange()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodrsort">ArrayList::rsort()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodset">ArrayList::set()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodsize">ArrayList::size()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodtoArray">ArrayList::toArray()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodtoJson">ArrayList::toJson()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodunique">ArrayList::unique()</a></span><br>
													<span class="method-name"><a href="../../Think/Util/ArrayList.html#methodunshift">ArrayList::unshift()</a></span><br>
											</blockquote>
										
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Thu, 27 Mar 2008 08:20:53 +0000 by 塞北的雪
	</p>
	</div></body>
</html>